#pragma once

#include "../Core/DCoordinates3.h"

//using namespace cagd;

namespace circle {
//    externz
    GLdouble radius;// = 1.0;
//    DCoordinate3 d0(GLdouble u);
//    DCoordinate3 d1(GLdouble u);
//    DCoordinate3 d2(GLdouble u);
    inline cagd::DCoordinate3 d0(GLdouble u)
    {
        return cagd::DCoordinate3(radius * cos(u), radius * sin(u), 0.0);
    }

    inline cagd::DCoordinate3 d1(GLdouble u)
    {
        return cagd::DCoordinate3(-radius * sin(u), radius * cos(u), 0.0);
    }

    inline cagd::DCoordinate3 d2(GLdouble u)
    {
        return cagd::DCoordinate3(0,0,0);
    }
}
